package game

import "time"

type BsSignUp struct {
	UserId        uint      `gorm:"column:user_id" json:"userId"`
	GameinfoId    uint      `gorm:"column:game_info_id;comment:赛事编号" json:"gameInfoId" form:"gameInfoId"`
	ProjectId     uint      `gorm:"column:project_id;comment:项目编号" json:"projectId" form:"projectId"`
	Score         float64   `gorm:"column:score;comment:分数" json:"score" form:"score"`
	Status        int       `gorm:"column:status;comment:状态(1-已报名，2-正常录入，3-个人赛前取消，4-裁判取消)" json:"status" form:"status"`
	Remark        string    `gorm:"column:remark;comment:备注" json:"remark" form:"remark"`
	CreateTime    time.Time `json:"createTime" form:"createTime" gorm:"->"`
	UpdateTime    time.Time `json:"updateTime" form:"updateTime" gorm:"->"`
	AuthorityId   uint      `json:"authorityId" gorm:"default:888;comment:用户角色ID"`
	GameInfoTitle string    `json:"gameInfoTitle" gorm:"->"`
	ProjectTitle  string    `json:"projectTitle" gorm:"->"`
	ExcludeStatus int       `gorm:"-"`
	UserNickName  string    `json:"userNickname" gorm:"->"`
	Username      string    `json:"username" gorm:"->"`
	UserCountry   string    `json:"userCountry" gorm:"->"`
	Rank          int       `json:"rank" gorm:"->"`
}

type BsSignUpStat struct {
	UserId       uint   `gorm:"column:user_id" json:"userId"`
	GoldNumber   uint   `gorm:"column:gold_number" json:"goldNumber"`
	SilverNumber uint   `gorm:"column:silver_number" json:"silverNumber"`
	BronzeNumber uint   `gorm:"column:bronze_number" json:"bronzeNumber"`
	Country      string `gorm:"column:country" json:"country"`
	Username     string `gorm:"column:username" json:"username"`
}

func (BsSignUp) TableName() string {
	return "bs_sign_up"
}
